//
//  MyReviewViewController.swift
//  willdo
//
//  Created by zz on 3/14/18.
//  Copyright © 2018 will do. All rights reserved.
//

import UIKit

class MyReviewViewController: UIViewController, MyReviewViewDelegate {

    var myReviewView:MyReviewView?
    var modle:[MyReviewModle]?
    override func viewDidLoad() {
        super.viewDidLoad()

//        self.automaticallyAdjustsScrollViewInsets = false
//        self.edgesForExtendedLayout = UIRectEdge(rawValue: 0)
//        
//        //modle = REVIEW_MODLE
//        myReviewView = MyReviewView(frame: view.frame, modles: modle!)
//        myReviewView?.delegate = self
//        view.addSubview(myReviewView!)
//        myReviewView?.snp.makeConstraints({ (make) in
//            make.edges.equalToSuperview()
//        })
    }

    func myReviewCellDidSelect(index: IndexPath) {
        let detailVC = DetailReviewViewController()
        let modle = MyReviewDetailModle(ReviewModle: self.modle![index.section], emergencyState: EmergencyState.emergency, leader_avatar: "", receive_avatar: "",name: "123", commitTime: "2018.1", commitMsg: "帆帆，下个月就是十佳大学生评选了，组织部这边要先行动起来，咱们这次的场地选在了学活剧院，需要预留50位嘉宾领导的位子，其余作为观众位，至于工作人员和候选人员的作为安排，你们自己考虑下。12月25日之前务必提交一版作为方案，用excel就可以了。", file: REVIEW_FILE[index.section], subReview: nil, ReviewMember: nil)
        detailVC.modle = modle
        
        detailVC.title = "任务"
        detailVC.hidesBottomBarWhenPushed = true
        self.navigationController?.pushViewController(detailVC, animated: true)
    }

}
